<!-- 1 定义组件模版 -->
<template>
    <div>
        css 详情


        <div>id:{{ id }}</div>

        <div>title:{{ title }}</div>

        <div>content:{{ content }}</div>



        <div v-if="time">time:{{ time }}</div>



    </div>

</template>

<!-- 2 定义组件逻辑 -->
<script setup lang="ts" name="detail">

import { ref, toRefs } from "vue";

defineProps<{
    id: string;
    title: string;
    content: string;
    time?: number
}>()



//不在 params  从 attr




</script>

<!-- 3 定义样式 -->
<style scoped>
div {
    margin: 5px;
}
</style>